//part1:C03:ex3.39.cpp -- compare two strings.
#include <iostream>
#include <string>

int main(void)
{
    using namespace std;
    string s1, s2;
    cout << "Enter two strings:" << endl;
    cin >> s1 >> s2;

    if (s1 > s2)
    {
        cout << "str1 > str2" << endl;
    }
    else if(s1 < s2)
    {
        cout << "str1 < str2" << endl;
    }
    else
        cout << "str1 equal str2" << endl;

    return 0;
}
